from flask_migrate import MigrateCommand
from info import create_app, models
from flask_script import Manager
from flask_session import Session

app = create_app('development')

# 设置控制session存储位置的类与app关联
Session(app)

manage = Manager(app)

manage.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manage.run()